﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddAdjustingPageStep2.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.FTradeModel.AddAdjustingPageStep2" %>
<%--调帐页面-->选择条件 步2--%>

<form id="pagerForm" method="post" action="FTradeModel/AddAdjustingPageStep2.aspx">
<input type="hidden" name="JingXiaoShang" value="<%=JingXiaoShang %>" />
<input type="hidden" name="FCatheringId" value="<%=FCatheringId %>" />
<input type="hidden" name="JiHao" value="<%=JiHao %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="20" />
</form>
<form id="form1" runat="server" method="post" action="FTradeModel/AddAdjustingPageStep2.aspx" onsubmit="return dialogSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    <input type="hidden" name="JingXiaoShang" value="<%=JingXiaoShang %>" />
                     <input type="hidden" name="ajax" value="query" />  
                     输入机号：                
                </td>
                
                <td>
                    <input name="JiHao" type="text" value="<%=JiHao %>"  />
                </td>
                <td>
                     <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>
<div class="pageContent">
    <table class="table" width="100%" layouth="90" targetType="dialog">
        <thead>
             <tr  >    
                <th>收款标题</th>            
                <th width="100" <%=GetDataListOrder("JiHao") %>>机号</th>
                <th width="80">冲帐款项</th>  
                <th width="80">应付金额</th>
                <th width="90" <%=GetDataListOrder("DaoQiRi") %>>到期日</th> 
                <th width="90" <%=GetDataListOrder("CreateDate") %>>记账日期</th>
                <th width="80">当次冲帐</th>
                <th width="80">总已付</th> 
                <th width="100">可调帐金额</th>
               <%-- <th>选中</th>    --%>
                <th width="60">选中</th>         
            </tr>
        </thead>
        <tbody>
            <asp:repeater id="rpMenu" runat="server">
                <HeaderTemplate>
        
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="AddAdjustingPageStep2Tr" FbalanceId="<%# Eval("FbalanceId")%>">
                        <td width="80"><%# Eval("FCTitle")%></td>
                        <td width="80" ><%# Eval("JiHao")%></td>
                         <td><%# Eval("ShowTitle")%></td>  
                         <td ><%# FormatDecimalToStrings(Eval("JinE"),"N")%></td> 
                         <td><%# Convert.ToDateTime(Eval("DaoQiRi")).ToString("yyyy-MM-dd")%></td> 
                         <td><%# Convert.ToDateTime(Eval("CreateDate")).ToString("yyyy-MM-dd")%></td>
                        <td><%# FormatDecimalToStrings(Eval("BalanceMoney"),"N")%></td>
                        
                        <td><%# FormatDecimalToStrings(Eval("YiChongJinE"),"N")%></td> 
                        <td><%# FormatDecimalToStrings(Eval("AdjustingMoney"),"N")%></td> 
                       <%-- <td><a class="btnSelect" href="javascript:onSelectSingRowBalance({FbalanceId:'<%# Eval("FbalanceId") %>',JiHao:'<%# Eval("JiHao") %>',FCTitle:'<%# Eval("FCTitle") %>',BalanceMoney:'<%# Eval("BalanceMoney") %>',CreateDate:'<%# Eval("CreateDate") %>',JinE:'<%# Eval("JinE") %>',ShowTitle:'<%# Eval("ShowTitle") %>',DaoQiRi:'<%# Eval("DaoQiRi") %>',YiChongJinE:'<%# Eval("YiChongJinE") %>',AdjustingMoney:'<%# Eval("AdjustingMoney") %>'})" title="调帐操作">调帐操作</a></td>--%>
                        <td><input type="checkbox" onclick="javascript:onSelectSingRowBalance(this,{FbalanceId:'<%# Eval("FbalanceId") %>',JiHao:'<%# Eval("JiHao") %>',FCTitle:'<%# Eval("FCTitle") %>',BalanceMoney:'<%# GetShowDBDecimal(Eval("BalanceMoney")) %>',CreateDate:'<%#  Convert.ToDateTime(Eval("CreateDate")).ToString("yyyy-MM-dd") %>',JinE:'<%# GetShowDBDecimal(Eval("JinE")) %>',ShowTitle:'<%# Eval("ShowTitle") %>',DaoQiRi:'<%# Convert.ToDateTime(Eval("DaoQiRi")).ToString("yyyy-MM-dd") %>',YiChongJinE:'<%# GetShowDBDecimal(Eval("YiChongJinE")) %>',AdjustingMoney:'<%# Eval("AdjustingMoney") %>',FCatheringId:'<%# Eval("FCatheringId") %>'})"  title="调帐操作"/></td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                </FooterTemplate>
            </asp:repeater>
      </tbody>
    </table>
    <script type="text/javascript">
        $(document).ready(function () {
            var $AdjustingList = $("#AddAdjustingPage_AdjustingList").find("tbody");
            $("tr.AddAdjustingPageStep2Tr").each(function () {
                var $FbalanceId = $(this).attr("FbalanceId")
                var rowExist = $AdjustingList.find("#AdjustingList_Row" + $FbalanceId).attr("id");
                if (rowExist != undefined) {
                    $(this).css("color", "red");
                    $(this).find(":checkbox").remove();
                }
            })
        })
    </script>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="dialogPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="dialog" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>

</div>
</form>
